package com.sise.parkinglot.controller.applet;

import com.sise.parkinglot.bean.CodeMsg;
import com.sise.parkinglot.entity.Charger;
import com.sise.parkinglot.service.IChargerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ZJ
 */
@RestController
@RequestMapping("/api/charger")
public class AppletChargerController {

    @Resource
    private IChargerService chargerService;

    @PostMapping("/getChargerList")
    public CodeMsg<List<Charger>> getChargerList() {
        return chargerService.getChargerList();
    }

}
